/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Persistencia.Entidades;

import java.io.Serializable;


/**
 *
 * @author Administrador
 */

public class PagoBoletas implements Serializable {
    private static final long serialVersionUID = 1L;
   
    protected PagoBoletasPK pagoBoletasPK;
   
    private BoletaSenasa boletasSenasa;
 
    private PagoSenasa pagosSenasa;

    public PagoBoletas() {
    }

    public PagoBoletas(PagoBoletasPK pagoBoletasPK) {
        this.pagoBoletasPK = pagoBoletasPK;
    }

    public PagoBoletas(int numPago, int numBoleta) {
        this.pagoBoletasPK = new PagoBoletasPK(numPago, numBoleta);
    }

    public PagoBoletasPK getPagoBoletasPK() {
        return pagoBoletasPK;
    }

    public void setPagoBoletasPK(PagoBoletasPK pagoBoletasPK) {
        this.pagoBoletasPK = pagoBoletasPK;
    }

    public BoletaSenasa getBoletasSenasa() {
        return boletasSenasa;
    }

    public void setBoletasSenasa(BoletaSenasa boletasSenasa) {
        this.boletasSenasa = boletasSenasa;
    }

    public PagoSenasa getPagosSenasa() {
        return pagosSenasa;
    }

    public void setPagosSenasa(PagoSenasa pagosSenasa) {
        this.pagosSenasa = pagosSenasa;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (pagoBoletasPK != null ? pagoBoletasPK.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof PagoBoletas)) {
            return false;
        }
        PagoBoletas other = (PagoBoletas) object;
        if ((this.pagoBoletasPK == null && other.pagoBoletasPK != null) || (this.pagoBoletasPK != null && !this.pagoBoletasPK.equals(other.pagoBoletasPK))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "Persistencia.Entidades.PagoBoletas[pagoBoletasPK=" + pagoBoletasPK + "]";
    }

}
